//
//  CQAFNetHelper.h
//  CQFramework
//
//  Created by runo on 16/5/27.
//  Copyright © 2016年 caoqin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "responseResult.h"

typedef void(^RBlock)(responseResult *reslut);//声明一个block类型
@interface CQAFNetHelper : NSObject

@property(nonatomic,copy)RBlock Mblock;

+(instancetype)sharInstance;

-(NSURLSessionDataTask *)cqPostparams:(NSDictionary*)dic CompletionBlock:(RBlock)block;
-(void)cqCloseAllTask;

-(void)cqCloseTisTask:(NSURLSessionDataTask *)task;

@end
